import request from '@/utils/request'
import {projectApiUrl} from '../config'
/**
 * 项目经理扣分列表
 * @param parameter
 */
export function getPointsRecordList(parameter){
  return request({ 
    url: projectApiUrl+'/project-manager-score/deduction-list/list',
    method: 'post',
    data: parameter
  })
}


/**
 * 项目经理扣分统计
 * @param
 */
export function getPointsRecordTotal(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list/count/list',
    method: 'post',
    data
  })
}



/**
 * 项目经理扣分详情
 * @param
 */
export function getPointsRecordDetails(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list/detail',
    method: 'get',
    params:data
  })
}

/**
 * 项目经理名称查询
 * @param
 */
export function getManagerName(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list/project-manager',
    method: 'get',
    params:data
  })
}



/**
 * 项目经理扣分新增
 * @param data
 */
export function addPointsRecord(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list',
    method: 'post',
    data: data
  })
}


/**
 * 项目经理扣分编辑
 * @param data
 */
export function editPointsRecord(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list/update',
    method: 'post',
    data: data
  })
}


/**
 * 项目经理扣分附件查询
 * @param data
 */
export function pointsRecordFileQuery(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list/fileQuery',
    method: 'post',
    data: data
  })
}

/**
 * 项目经理扣分附件上传
 * @param data
 */
export function pointsRecordFileUpload(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list/fileUpload',
    method: 'post',
    data: data
  })
}

/**
 * 项目经理扣分附件删除
 * @param data
 */
export function pointsRecordFileDelete(data){
  return request({
    url: projectApiUrl+'/project-manager-score/deduction-list/fileDelete',
    method: 'post',
    data: data
  })
}

/**
 * 项目经理扣分情况
 * @param data
 */
export function pointsDeduction(data){
  return request({
    url: projectApiUrl+'/project-manager-Penalties/points-deduction',
    method: 'get',
    params: data
  })
}


